package cn.sykj.car.service;

import cn.sykj.car.entity.Roles;
import cn.sykj.car.entity.UserRole;
import cn.sykj.car.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户角色关联 服务类
 * </p>
 *
 * @author Yixu
 * @since 2018-11-29
 */
public interface IUserRoleService extends IService<UserRole> {
    public List<UserRole> getByRoleId(Integer roleId);

    /**
     * 获取已添加的角色
     * @param sysUsers
     * @return
     */
    public List<Roles> getRolesByUser(Users sysUsers);
}
